function sendMessage(res, vue) {
    let {message, status, data} = res;
    if (status !== 200) {
        vue.$message({
            message: message,
            type: 'error'
        });
    } else {
        vue.$message({
            message: message,
            type: 'success'
        });
    }
}

export default { sendMessage }